home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / accessibility / nsPIAccessNode.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  116 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsPIAccessNode.idl
  3.  */
  4.  
  5. #ifndef __gen_nsPIAccessNode_h__
  6. #define __gen_nsPIAccessNode_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIFrame; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsPIAccessNode */
  21. #define NS_PIACCESSNODE_IID_STR "b3507946-4a44-4e40-b66c-f23e320997c5"
  22.  
  23. #define NS_PIACCESSNODE_IID \
  24.   {0xb3507946, 0x4a44, 0x4e40, \
  25.     { 0xb6, 0x6c, 0xf2, 0x3e, 0x32, 0x09, 0x97, 0xc5 }}
  26.  
  27. class NS_NO_VTABLE nsPIAccessNode : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_PIACCESSNODE_IID)
  31.  
  32.   /* [noscript] void init (); */
  33.   NS_IMETHOD Init(void) = 0;
  34.  
  35.   /* [noscript] void shutdown (); */
  36.   NS_IMETHOD Shutdown(void) = 0;
  37.  
  38.   /* [notxpcom] nsIFrame GetFrame (); */
  39.   NS_IMETHOD_(nsIFrame *) GetFrame(void) = 0;
  40.  
  41. };
  42.  
  43. /* Use this macro when declaring classes that implement this interface. */
  44. #define NS_DECL_NSPIACCESSNODE \
  45.   NS_IMETHOD Init(void); \
  46.   NS_IMETHOD Shutdown(void); \
  47.   NS_IMETHOD_(nsIFrame *) GetFrame(void); 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSPIACCESSNODE(_to) \
  51.   NS_IMETHOD Init(void) { return _to Init(); } \
  52.   NS_IMETHOD Shutdown(void) { return _to Shutdown(); } \
  53.   NS_IMETHOD_(nsIFrame *) GetFrame(void) { return _to GetFrame(); } 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  56. #define NS_FORWARD_SAFE_NSPIACCESSNODE(_to) \
  57.   NS_IMETHOD Init(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
  58.   NS_IMETHOD Shutdown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
  59.   NS_IMETHOD_(nsIFrame *) GetFrame(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrame(); } 
  60.  
  61. #if 0
  62. /* Use the code below as a template for the implementation class for this interface. */
  63.  
  64. /* Header file */
  65. class _MYCLASS_ : public nsPIAccessNode
  66. {
  67. public:
  68.   NS_DECL_ISUPPORTS
  69.   NS_DECL_NSPIACCESSNODE
  70.  
  71.   _MYCLASS_();
  72.  
  73. private:
  74.   ~_MYCLASS_();
  75.  
  76. protected:
  77.   /* additional members */
  78. };
  79.  
  80. /* Implementation file */
  81. NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPIAccessNode)
  82.  
  83. _MYCLASS_::_MYCLASS_()
  84. {
  85.   /* member initializers and constructor code */
  86. }
  87.  
  88. _MYCLASS_::~_MYCLASS_()
  89. {
  90.   /* destructor code */
  91. }
  92.  
  93. /* [noscript] void init (); */
  94. NS_IMETHODIMP _MYCLASS_::Init()
  95. {
  96.     return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98.  
  99. /* [noscript] void shutdown (); */
  100. NS_IMETHODIMP _MYCLASS_::Shutdown()
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* [notxpcom] nsIFrame GetFrame (); */
  106. NS_IMETHODIMP_(nsIFrame *) _MYCLASS_::GetFrame()
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* End of implementation class template. */
  112. #endif
  113.  
  114.  
  115. #endif /* __gen_nsPIAccessNode_h__ */
  116.